#!/bin/bash

# Set the commit message from the first argument, or use a default message
cm="${1:-Backup commit on $(date)}"

# Navigate to the repository directory (optional)
# cd /path/to/your/repository

# Stage all changes
git add .

# Commit with the provided or default message
git commit -m "$cm"

# Push to the repository
git remote add origin git@gitee.com:recursivejiashuo/peft-cl.git
git push -u origin master --verbose

# Print a success message
echo "Code changes backed up successfully!"
